package com.charlotte.study.gupao.strategy.pay;

import com.alibaba.fastjson.JSON;

/**
 * @author junjie.ding
 * @date 2020/3/16
 */
public class Test {

    public static void main(String[] args) {
        Payment alipay = PaymentStrategy.getPayment("alipay");
        BaseResponse baseResponse = alipay.pay("1000", 499);
        System.out.println(JSON.toJSONString(baseResponse));
    }
}
